package com.nurdrobotics;

import com.nurdrobotics.LimitSwitch;

public class LimitSwitchMock extends LimitSwitch {

    protected boolean m_state = false;

    public LimitSwitchMock(boolean state) {
        super(-1);
        m_state = state;
    }

    public LimitSwitchMock() {
        super(-1);
    }

    public boolean isClosed() {
        return m_state;
    }

    public boolean isOpen() {
        return !isClosed();
    }

    public void setState(boolean state) {
        m_state = state;
    }
}
